﻿package bdz.projects.lavender.doi.ui
{
	
	import bdz.common.display.DisplayLoader;
	import bdz.common.events.GenericEvent;
	import bdz.common.managers.AudioControlManager;
	import bdz.projects.lavender.doi.ui.core.DOICoreView;
	import flash.display.MovieClip;
	import flash.events.Event;
	import flash.events.MouseEvent;
	
	/**
	 * ...
	 * @author ...
	 */
	public class DOIModuleView extends DOICoreView 
	{
		
		
		private var moduleSteps:Array;
		private var stepView:DisplayLoader;
		
		function DOIModuleView() {
			super();
		}
		override protected function cleanUpComponent(evt:Event):void {
			try {
				removeChild(stepView);
			}catch (e:Error) {
				
			}
			super.cleanUpComponent(evt);
		}
		
		private function createStepView():void {
			for each(var o:* in moduleSteps){
				for(var prop in o){
					trace(prop+" >> " + o[prop]);
				}
			}
		}
		override protected function renderComponent():void {
			moduleSteps = dsource.steps;
			createStepView();			
		}
	}
	
}